/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.sys.entity;

import org.hibernate.validator.constraints.Length;
import com.soccer.cms.modules.sys.entity.Dictitem;

import com.soccer.cms.common.persistence.DataEntity;

/**
 * 字典项管理Entity
 * @author zouqh
 * @version 2015-05-26
 */
public class Dictitem extends DataEntity<Dictitem> {
	
	private static final long serialVersionUID = 1L;
	private String code;		// 编码
	private String name;		// 名称
	private Dictitem dictitem;		// 上级
	private Long dictsort;		// 顺序
	
	public Dictitem() {
		super();
	}

	public Dictitem(String id){
		super(id);
	}

	@Length(min=0, max=50, message="编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=100, message="名称长度必须介于 0 和 100 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Dictitem getDictitem() {
		return dictitem;
	}

	public void setDictitem(Dictitem dictitem) {
		this.dictitem = dictitem;
	}
	
	public Long getDictsort() {
		return dictsort;
	}

	public void setDictsort(Long dictsort) {
		this.dictsort = dictsort;
	}
	
}